package io.github.uicdb.flame_driven.common.recipe;

import io.github.uicdb.flame_driven.ModUtil;
import net.minecraft.core.Registry;
import net.minecraft.world.item.crafting.Recipe;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.minecraft.world.item.crafting.RecipeType;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD,modid = ModUtil.MODID)
public class ModRecipes {
    public static  RecipeType<SingleInputRecipe> SINGLE_INPUT_RECIPE_RECIPE_TYPE;
    @SubscribeEvent
    public static void registerRecipeSerializer(RegistryEvent.Register<RecipeSerializer<?>> registryEvent){
        var register=registryEvent.getRegistry();
        register.register(SingleInputRecipe.Serializer.INSTANCE.setRegistryName(ModUtil.modLoc("single_input")));
    }
    public static void registerType(){
        SINGLE_INPUT_RECIPE_RECIPE_TYPE=RecipeType.register(ModUtil.modStr("single_input"));
    }
}
